// 使用HookApi
// import { createRoot } from 'react-dom/client';
// import { HashRouter } from 'react-router-dom'; // BrowserRouter
// import './index.css';
// import BaseRouter from './router1';
// createRoot(document.getElementById('root')!).render(
//   // <BrowserRouter>
//   // </BrowserRouter>
//   <HashRouter>
//     <BaseRouter />
//   </HashRouter>
// );

// 基础路由api
import { createRoot } from 'react-dom/client';
import { RouterProvider } from 'react-router-dom';
import './index.css';
import router from './router2';
createRoot(document.getElementById('root')!).render(
  // <BrowserRouter>
  // </BrowserRouter>
  <RouterProvider router={router} />
);
